<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>员工信息管理系统 - 仪表盘</title>
    <link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<header>
    <div class="logo">员工信息管理系统</div>
    <nav>
        <ul>
            <li class="active"><a href="dashboard.jsp">仪表盘</a></li>
            <li><a href="EmployeeServlet?action=list">员工管理</a></li>
        </ul>
    </nav>
    <div class="user-info">
        <span>欢迎, ${user.username}</span>
        <a href="LogoutServlet" class="logout-btn">退出</a>
    </div>
</header>

<main>
    <div class="dashboard-container">
        <h2>仪表盘</h2>
        <div class="stats-cards">
            <div class="stat-card">
                <h3>员工总数</h3>
                <p>3</p> <!-- 实际项目中应从数据库获取 -->
            </div>
            <div class="stat-card">
                <h3>部门数量</h3>
                <p>3</p> <!-- 实际项目中应从数据库获取 -->
            </div>
            <div class="stat-card">
                <h3>本月新增</h3>
                <p>0</p> <!-- 实际项目中应从数据库获取 -->
            </div>
        </div>

        <div class="quick-actions">
            <h3>快速操作</h3>
            <a href="EmployeeServlet?action=list" class="btn">查看所有员工</a>
            <a href="EmployeeServlet?action=add" class="btn primary">添加新员工</a>
        </div>
    </div>
</main>

<footer>
    <p>&copy; 2023 员工信息管理系统</p>
</footer>
</body>
</html>